//
//  Match.m
//  HotWord
//
//  Created by 贺 欢 on 13-3-2.
//
//

#import "Match.h"

@implementation Match


- (void)encodeWithCoder:(NSCoder *)aCoder
{
	[aCoder encodeObject:self.matchType forKey:@"matchType"];
	[aCoder encodeObject:self.dreamschool forKey:@"dreamschool"];
	[aCoder encodeObject:self.examYear forKey:@"examYear"];
	[aCoder encodeObject:self.examMonth forKey:@"examMonth"];
	[aCoder encodeObject:self.examAddress forKey:@"examAddress"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
	if ([self init]) {
		self.matchType = [aDecoder decodeObjectForKey:@"matchType"];
		self.dreamschool = [aDecoder decodeObjectForKey:@"dreamschool"];
		self.examYear = [aDecoder decodeObjectForKey:@"examYear"];
		self.examMonth = [aDecoder decodeObjectForKey:@"examMonth"];
		self.examAddress = [aDecoder decodeObjectForKey:@"examAddress"];
    }
	return self;
}

-(void)dealloc
{
    [_matchType release];
    [_dreamschool release];
    [_examYear release];
    [_examMonth release];
    [_examAddress release];
    [super dealloc];
}


@end
